package org.sys.transporttrainsys.repository;

import org.sys.transporttrainsys.entity.StudentLearningStatus;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentLearningStatusRepository extends JpaRepository<StudentLearningStatus, Long> {

    // 根据学生ID获取学习情况
    List<StudentLearningStatus> findByStudentId(Long studentId);

    // 根据培训计划ID获取学习情况
    List<StudentLearningStatus> findByTrainingPlanId(Long trainingPlanId);
}